package com.tuanzi.loan.web.lazy.family.largeAmount;

import com.tuanzi.loan.business.service.family.LoanLargeAmountNewPartnerInfoService;
import com.tuanzi.loan.core.lazy.BaseLazyDataModel;
import com.tuanzi.loan.core.util.SpringContextHolder;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.Collaborate.LargeAmountNewPartnerRequest;
import com.tuanzi.loan.vo.response.collaborate.LargeAmountNewPartnerResponse;
import org.springframework.data.domain.Page;

/**
 * User: liangZongXi
 * Create time: 11:17 2019/8/21
 * Description:
 */
public class LoanLargeAmountNewPartnerInfoListLazyDataModel extends BaseLazyDataModel<LargeAmountNewPartnerRequest, LargeAmountNewPartnerResponse> {

    private static final long serialVersionUID = -7291904921943775561L;

    private LoanLargeAmountNewPartnerInfoService loanLargeAmountNewPartnerInfoService  = SpringContextHolder.getBean(LoanLargeAmountNewPartnerInfoService.class);

    public LoanLargeAmountNewPartnerInfoListLazyDataModel(LargeAmountNewPartnerRequest largeAmountNewPartnerRequest) {
        super(largeAmountNewPartnerRequest);
    }

    @Override
    protected Page<LargeAmountNewPartnerResponse> doLoad(PageSearcher<LargeAmountNewPartnerRequest> pageSearcher) {
        return loanLargeAmountNewPartnerInfoService.list(pageSearcher);
    }
}
